//
//  ZhongModel.m
//  UI11home
//
//  Created by dllo on 15/11/8.
//  Copyright (c) 2015年 liyinkai. All rights reserved.
//

#import "ZhongModel.h"

@implementation ZhongModel
-(id)valueForUndefinedKey:(NSString *)key {
    return nil;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"list"]) {
        NSArray *array = value;
        NSMutableArray *bian = [[NSMutableArray alloc] init];
        for (NSDictionary *dic in array) {
            XiaoModel *model = [[XiaoModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [bian addObject:model];
        }
        self.listq = [[NSArray alloc] initWithArray:bian];
    }
}
@end
